package com.fjd.mapper;

import com.fjd.entity.DeliveryDetailHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DeliveryDetailHistoryMapper {
    @Select("select * from logistic_detail_history where delivery_order_no =#{deliveryId} order by time_stamp desc")
    List<DeliveryDetailHistory> select(String deliveryId);

    @Select("select * from logistic_detail_history where delivery_order_no =#{deliveryBatchId} order by time_stamp desc")
    List<DeliveryDetailHistory> getByDeliveryOrderNumber(String deliveryBatchId);
}
